# $Id: PKGBUILD 143711 2011-11-28 16:30:10Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Aaron Griffin <aaron@archlinux.org>

pkgname=asio
pkgver=1.4.8
pkgrel=2
pkgdesc="Cross-platform C++ library for ASynchronous network I/O"
arch=('i686' 'x86_64')
url="http://asio.sourceforge.net"
license=('custom')
depends=('boost')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2")
md5sums=('bc2ca8ea37892870d194421154df122f')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR=${pkgdir} install
  #license
  install -D -m644 LICENSE_1_0.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
